package com.school.service;

import com.school.dto.user.LoginDTO;
import com.school.dto.user.UserArrayDTO;
import com.school.model.PageModel;
import com.school.model.User;

public interface UserService {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);


    PageModel selectArrayByParam(UserArrayDTO dto);

    int updateByPrimaryKeySelective(User record);

    /**
     * 登录
     * @param dto
     * @return
     */
    User login(LoginDTO dto);

    int updateDepartmentNameByDepId(Integer dId,String dName);

    int updateByDep(User user);


}
